import 'package:json_annotation/json_annotation.dart';


//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
part 'bean_appoint_printer_scene.g.dart';

@JsonSerializable(explicitToJson: true)
class BeanAppointPrinterScene {

  String id;
  String name;

  List<BeanAppointPrinterIndex> printerIndexs;

  BeanAppointPrinterScene(this.id, this.name, this.printerIndexs);


  factory BeanAppointPrinterScene.fromJson(Map<String, dynamic> json) => _$BeanAppointPrinterSceneFromJson(json);
  Map<String, dynamic> toJson() => _$BeanAppointPrinterSceneToJson(this);
}


@JsonSerializable(explicitToJson: true)
class BeanAppointPrinterIndex {

  String id;
  String name;
  bool isUserSelect=false;

  BeanAppointPrinterIndex(this.id, this.name, this.isUserSelect);

  factory BeanAppointPrinterIndex.fromJson(Map<String, dynamic> json) => _$BeanAppointPrinterIndexFromJson(json);
  Map<String, dynamic> toJson() => _$BeanAppointPrinterIndexToJson(this);

}